<!--  -->
<template>
<div>
   		<div class="container">
			<header >
				<div class="icon-via via">
					<router-link to="/login"></router-link>
				</div>
				<div class="userName" @click="$router.push('/login')">
					<em>{{username}}</em>
				</div>
				<div class="manage">
					<span><a href="#">账户管理、收货地址 ></a></span>
				</div>
			</header>
			<main>
				<div class="myInfo">
					<em class="icon-order">我的订单</em>
					<span><a href="#">查看全部 ></a></span>
				</div>
				<div class="module">
					<ul>
						<li class="icon-pay"><a href="#">待付款</a></li>
						<li class="icon-send"><a href="#">待发货</a></li>
						<li class="icon-take"><a href="#">待收货</a></li>
						<li class="icon-finish"><a href="#">已完成</a></li>
					</ul>
				</div>
				<div class="module2">
					<ul>
						<li class="icon-01"><a href="#">我的收藏</a><span>0</span></li>
						<li class="icon-02"><a href="#">我的评论</a><span>10</span></li>
						<li class="icon-03"><a href="#">收件箱</a><span>5</span></li>
						<li class="icon-04"><a href="#">系统消息</a><span>12</span></li>
					</ul>
				</div>
				<div class="other-Info">
					<ul>
					<li class="icon-faq"><a href="#">常见问题<span> > </span></a></li>
					<li class="icon-idea"><a href="#">意见反馈<span> > </span></a></li>
					</ul>
				</div>
			</main>
		</div>
     <xlFooter :act="3"></xlFooter>
</div>
 
</template>

<script>
export default{
  name:'my',
  data(){
    return {
		username:''
	}
  },
  activated(){
	//   let uid = localStorage.getItem('uid');
	  let username = localStorage.getItem('username');
	  this.username = username||'未命名'
  }

}

</script>
<style lang='scss'>


.container{
	max-width: 750px;
	min-width: 32px;
	margin: 0 auto;
	padding-bottom: 55px;
}

header{
	height: 100px;
	background-color: #39435B;
}
.via{
	margin: 10px 0 0 10px;
	background-position: 0 -330px;
	float: left;
}
.via a{
	display: inline-block;
	width: 75px;
	height: 75px;
}
.userName{
	float: left;
	line-height: 70px;
	padding-left: 10px;
}
.userName em{
	color: #fff;
	font-size: 16px;
	font-weight: bold;
}
.manage{
	float: right;
	line-height: 70px;
	
	padding-right: 10px;
	margin-top: 50px;
}
.manage a{
	color: #fff;
}
main div{
	background-color: #fff;
}
.myInfo{
	padding: 0 10px;
	line-height: 40px;
	border-bottom: 1px solid #B4BAC6;
}
.myInfo em{
	padding-left: 23px;
	background-position: -357px -78px;
}
.myInfo a{
	float: right;
	margin-right: -135px;
}
.module{
	padding: 5px 0;
	border-bottom: 1px solid #B4BAC6;
}
.module ul{
	text-align: center;
	margin: 0 auto;
}
.module li{
	text-align: center;
	width:50px;
	display: inline-block;
	padding-top: 40px;
	margin: 0 4.2%;
}
.module li:nth-child(1){
	background-position: -112px -333px;
}
.module li:nth-child(2){
	background-position: -173px -333px;
}
.module li:nth-child(3){
	background-position: -225px -333px;
}
.module li:nth-child(4){
	background-position: -285px -333px;
}
.module2{
	margin:10px 0;
	padding: 5px 0;
	border-bottom: 1px solid #B4BAC6;
}
.module2 ul{
	text-align: center;
	margin: 0 auto;
}
.module2 li{
	text-align: center;
	width:60px;
	display: inline-block;
	padding-top: 40px;
	margin: 0 2.6%;
}
.module2 li span{
	display: block;
	color: #C30000;
}
.module2 li:nth-child(1){
	background-position: -110px -382px;
}
.module2 li:nth-child(2){
	background-position: -170px -382px;
}
.module2 li:nth-child(3){
	background-position: -221px -382px;
}
.module2 li:nth-child(4){
	background-position: -280px -382px;
}
.other-Info{
	line-height: 45px;
}
.other-Info li{
	display: block;
	padding-left: 34px;
	padding-right: 10px;
	border-bottom:1px solid #B4BAC6;
}
.other-Info li span{
	float: right;
	color: #aaa;
}
.icon-faq{
	background-position: -347px -296px !important;
}
.icon-idea{
	background-position: -347px -419px !important;
}

 
</style>